import { Button, Menu } from 'antd';
import React from 'react';
export const menu = (item: any, showDrawer: (a: any) => any) => (
  <Menu
    items={[
      {
        key: 0,
        label: (
          <Button
            type="primary"
            onClick={(e: any) => {
              showDrawer(item);
            }}
          >
            详情
          </Button>
        )
      },
      {
        key: 1,
        label: <span>复制</span>
      },
      {
        key: 2,
        label: (
          <Button
            onClick={function () {
              window.print();
            }}
          >
            打印
          </Button>
        )
      }
    ]}
  />
);
